Skip to content

Stage DNS for Dynamoose Cloud Pages cutover - #8

Merged
fishcharlie merged 2 commits into
mainfrom
codex/rrainn-pages-dns
Nov 26, 2026
Merged

fishcharlie merged 2 commits into
mainfrom
codex/rrainn-pages-dns

Conversation

@fishcharlie

@fishcharlie fishcharlie commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Summary

Add Terraform support for staging the rrainn Cloud Pages ownership TXT and DNS-01 certificate CNAME for dynamoosejs.com. This PR sets the generated Pages hostname and ownership TXT value. The Terraform configuration retains the proxied CloudFront CNAME with cutover disabled. Pages can verify ownership after the TXT record is applied, then issue the certificate delegation target for a separate change.

A later change can enable cutover once Pages serves the apex certificate and content. Terraform then switches the existing CNAME to the generated Pages hostname and sets its proxy status to DNS only in the same apply. Cloudflare remains authoritative, and the legacy subdomains keep their existing DNS records. The runbook covers verification and returning traffic to CloudFront.

Verification

  • terraform validate and terraform fmt -check -recursive
  • Five mocked Terraform plans covering unconfigured defaults, ownership only, certificate staging and rollback, DNS-only cutover, and rejection of cutover without certificate delegation
  • The existing Terraform GitHub Actions job runs the new mocked plans before the real plan or apply

Generated using AI (OpenAI Codex, GPT-6). Charlie Fish chose to keep Cloudflare authoritative and disable its proxy for the apex at cutover, and authorized opening this PR. Codex implemented the changes and ran the local checks. Maintainer review is pending.

@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Terraform Format and Style 🖌success

Terraform Initialization ⚙️success

Terraform Validation 🤖success

Validation Output

Success! The configuration is valid.


Terraform Plan 📖success

Show Plan

terraform

Warning: Deprecated Parameter

The parameter "dynamodb_table" is deprecated. Use parameter "use_lockfile"
instead.
cloudflare_record.dynamoosejs_com: Refreshing state... [id=1fac7d0b18019d2ec00fba5e2bbe8871]
cloudflare_record.alpha_dynamoosejs_com: Refreshing state... [id=1ebd0bfbdf04f3b93946ba07ef631030]
cloudflare_record._atproto_dynamoosejs_com: Refreshing state... [id=7cfbcee69552f21e460d660ebdfe5542]
cloudflare_record.beta_dynamoosejs_com: Refreshing state... [id=81f8386ee2fea65f9ca440caf3d85762]
cloudflare_record.v1_dynamoosejs_com: Refreshing state... [id=200fae8a38fceee094a8393a89876a56]
cloudflare_record.v2_dynamoosejs_com: Refreshing state... [id=76aae3d7f7097d5abbcc8ba16fcea3e9]
cloudflare_record.v3_dynamoosejs_com: Refreshing state... [id=314d1aab10215d975081643685a19736]

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  # cloudflare_record.dynamoosejs_com_pages_ownership[0] will be created
  + resource "cloudflare_record" "dynamoosejs_com_pages_ownership" {
      + allow_overwrite = false
      + created_on      = (known after apply)
      + hostname        = (known after apply)
      + id              = (known after apply)
      + metadata        = (known after apply)
      + modified_on     = (known after apply)
      + name            = "_rrainn-pages.dynamoosejs.com"
      + proxiable       = (known after apply)
      + ttl             = 1
      + type            = "TXT"
      + value           = "rrainn-pages=32d95af955f7c93305aa9439b91f87e232cbbb81b58d5cd3"
      + zone_id         = "0f35e13e3a75cd672586425316bdbe45"
    }

Plan: 1 to add, 0 to change, 0 to destroy.

─────────────────────────────────────────────────────────────────────────────

Note: You didn't use the -out option to save this plan, so Terraform can't
guarantee to take exactly these actions if you run "terraform apply" now.

Pusher: @fishcharlie, Action: pull_request, Working Directory: ``, Workflow: Terraform

@fishcharlie
fishcharlie marked this pull request as ready for review November 26, 2026 22:17
@fishcharlie
fishcharlie merged commit 022da8c into main Nov 26, 2026
1 check passed
@fishcharlie
fishcharlie deleted the codex/rrainn-pages-dns branch November 26, 2026 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant